package com.supeng.PMdepot.adapter.bak;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.supeng.PMdepot.R;
import com.supeng.PMdepot.entity.bak.SheBeiInfo;

/**
 * 设备
 * Created by Supeng on 2018/8/23.
 */
//Caption been
public class SheBeiAdapter extends BaseQuickAdapter<SheBeiInfo.DataBean, BaseViewHolder> {

    public SheBeiAdapter() {
        //item layout
        super(R.layout.layout_shebei_item);
    }
    //设置控件数据
    @Override
    protected void convert(final BaseViewHolder helper, SheBeiInfo.DataBean item) {
        helper.setText(R.id.tv_id,item.getMacID());
        helper.setText(R.id.tv_name,item.getMacName());
        helper.setText(R.id.tv_no,item.getModelNo());
    }
}
